package com.hzvictory.hotel_system.pojo.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
//import com.hzvictory.hotel_system.common.annotation.Excel;
import com.hzvictory.hotel_system.common.core.domain.BaseEntity;

/**
 * 新闻管理对象 news
 *
 * @author hzvictory
 * @date 2025-07-25
 */
public class News extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 新闻标题 */
    //@EXcel(name = "新闻标题")
    private String title;

    /** 新闻内容 */
    //@EXcel(name = "新闻内容")
    private String content;

    /** 状态：1发布，0草稿 */
    //@EXcel(name = "状态：1发布，0草稿")
    private Long status;

    /** 作者 */
    //@EXcel(name = "作者")
    private String author;

    /** 新闻图片URL */
    //@EXcel(name = "新闻图片URL")
    private String imageUrl;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    public void setAuthor(String author)
    {
        this.author = author;
    }

    public String getAuthor()
    {
        return author;
    }

    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl()
    {
        return imageUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("content", getContent())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("status", getStatus())
                .append("author", getAuthor())
                .append("imageUrl", getImageUrl())
                .toString();
    }
}
